package day005.Demo;

import day005.Student;

import java.util.Arrays;

public class Test01 {


    public static void main(String[] args) {
        Student[] students=new Student[2];
       Student s1=new Student(1,"4","234");
       Student s2=new Student(2,"3","34f");
          students[0]=s1;
          students[1]=s2;

        for (int i = 0; i <students.length ; i++) {
            System.out.println(students[i]);
        }
  test01(1,2.6);
    test02(1,2,3,4,5);
    test03(3,55,7,879,4,2,9);

    }
    public  static int test01(int a){
        System.out.println(a);
        return a;
    }
    public  static int test01(int a,int b){
        System.out.println(a+","+b);
        return a;
    }
    public  static int test01(int a,double b){
        System.out.println(a+","+b);
        return a;
    }
    public  static  void  test02(int... arr){
        System.out.println(Arrays.toString(arr));
    }
    public static void test03(int... ar){
        System.out.println(Arrays.toString(ar));
    }



}
